package com.xdf.docmanagementsystem.dao;

import org.springframework.stereotype.Repository;

import java.util.List;

import com.xdf.docmanagementsystem.entity.Employee;
import org.apache.ibatis.annotations.Param;
import com.xdf.docmanagementsystem.common.util.Example;

import java.util.Map;

/**
 * @Description : 员工
 * @Author : ZK
 * @Date : 2020-06-23 08:48:29
 */
@Repository
public interface EmployeeMapper {
    int insert(Employee record);

    int insertSelective(Employee record);

    int multiInsert(List<Employee> list);

    int insertDumplicateKeyUpdate(Employee record);

    int updateByPrimaryKey(Employee record);

    int updateByPrimaryKeySelective(Employee record);

    int multiUpdate(List<Employee> list);

    int deleteByPrimaryKey(Integer id);

    Employee selectByPrimaryKey(Integer id);

    List<Employee> selectAll();

    List<Employee> selectByParam(Employee record);

    int updateByExampleSelective(@Param("record") Employee record, @Param("example") Example example);

    int deleteByExample(@Param("example") Example example);

    List<Employee> selectByExample(@Param("example") Example example);

    int insertByExampleSelective(@Param("record") Employee record, @Param("example") Example example);

    List<Map<String, Object>> report(@Param("departmentId") Integer[] departmentId, @Param("status") Integer status);

    long selectCountByExample(@Param("example") Example example);
}